<?php
namespace app\api\controller;
use \app\api\model\ImagesModel;
use \app\api\Common\Common;

class Images extends Common{
	public function index(){
		$option=input('option');
		if (!method_exists($this,$option)) {
			die('code:0,info:朋友，别想调用我的图片啊！！');
		}
		$model=new ImagesModel();
		$this->$option($model);
	}

	public function slide($model)
    {
        $model->getSlideImg();
    }

    public function user($model)
    {
    	
        $model->getUserImg();
    }

    public function report($model)
    {
        $start = input("id");
        $num = input("num");
        $model->getPlayImg($start,$num);
    }

    public function guid($model)
    {
        // $model->getGuidImg();
        $start = input("id");
        $num = input("num");
        $model->getPlayImg($start,$num);
    }

    public function play($model)
    {
        $start = input("id");
        $num = input("num");
        $model->getPlayImg($start,$num);
    }
}

?>